@echo off
set _cur_dir=%cd%

set dep_dir=%cd%\..\dependence

cd "%dep_dir%\boost_1_67_0"

echo -- info, generate b2 ...
echo -- info,run b2 to compile boost 1.67
.\bootstrap.bat gcc && .\b2 --toolset=gcc --with-system  --with-program_options  --with-atomic  --with-chrono  --with-test  --with-thread  --prefix=C:\Users\vi\run threading=single link=static|shared  install

if not exist "%dep_dir%\fmt_v3\build" (
    mkdir "%dep_dir%\fmt_v3\build"
)

echo "-- info,build fmt static lib"
cd "%dep_dir%\fmt_v3\build"
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\Users\vi\run
make install

echo "-- info,build fmt shared lib"
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\Users\vi\run -DBUILD_SHARED_LIBS=ON
make install

cd %_cur_dir%


